export default class TypeDiagnose {
  static isNumber(v) {
    return !isNaN(v)
  }

  static isFunction(v) {
    return v && typeof v === 'function'
  }

  static isEnum(v) {
    return !!v.getById
  }
}
